package com.wwlwxg.dataStructure;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.ReentrantLock;

//TODO
public class ArrayBQueue {

	private int maxSize;    // 表示数组的最大容量
	private int producePos;       // 队列生产pos
	private int consumePos;       // 队列消费pos
	private Object[] arr;      // 该数组用于存放数据，模拟队列

//	final ReentrantLock lock;

//	private final Condition notEmpty;

//	private final Condition notFull;

//	transient Itrs itrs = null;

	final int dec(int i) {
		return ((i == 0) ? arr.length : i) - 1;
	}
}
